package com.glory.dmegcpda.base

import android.app.Application
import android.content.Context
import com.glory.mvvmnet.utils.InitUtils
import com.pda.platform.ui.ui_pdaplatform.base.FreeUI_InitUtils
import com.pda.platform.ui.ui_pdaplatform.utils_public.FreeApi_SharePreferencesUtils

/**
 * @author HX
 * @date 2021/5/21
 * @desc
 */
class MyApp : Application() {

    override fun onCreate() {
        super.onCreate()
        InitUtils.init(this)

        Constant.mUrl = FreeApi_SharePreferencesUtils.getSharePre("SystemSet", "sercerUrl", Constant.mUrl,applicationContext)
        Constant.mainUrl = Constant.http + Constant.mUrl + Constant.url
        app = applicationContext
        FreeUI_InitUtils.init(app,this,true)
    }

    companion object {
        @JvmField
        var app: Context? = null
    }

}